import { defineConfig } from 'eslint/config';
import globals from 'globals';
import js from '@eslint/js';
import pluginVue from 'eslint-plugin-vue';
import eslintConfigPrettier from 'eslint-config-prettier'


export default defineConfig([
  { files: ['**/*.{js,mjs,cjs,vue}'] },
  { files: ['**/*.{js,mjs,cjs,vue}'], languageOptions: { globals: {...globals.browser, ...globals.node} } },
  { files: ['**/*.{js,mjs,cjs,vue}'], plugins: { js }, extends: ['js/recommended'] },
  eslintConfigPrettier,
  pluginVue.configs['flat/essential'],
  {
    rules: {
      'vue/multi-word-component-names': 'off',
      quotes: ['error', 'single'],  
      eqeqeq: 'error',  
      curly: 'error',  
      semi: 0
    }
  }
])